-------------------------------------------------------------------------------------
-- -*- coding: utf-8 -*-
--
-- @author:   zxf
-- @email:    07291@qq.com
-- @date:     2024/5/28
-- @module:   task
-- @describe:
-- @version:  v1.0
--

-------------------------------------------------------------------------------------

---@class task
local task = {}
local this = task

local quest_ctx = quest_ctx

---@ type ui
local ui = import('game/func/ui')

-- 初始化单个任务
function this.initTask(obj)
    local ret = nil
    if quest_ctx:init(obj) then
        ret = {
            obj = obj,
            --res_ptr = quest_ctx:res_ptr(),
            id = quest_ctx:id(),
            --step_id = quest_ctx:step_id(),
            type = quest_ctx:type(),
            status = quest_ctx:status(),
            --cur_tar_num = quest_ctx:cur_tar_num(),
            --max_tar_num = quest_ctx:max_tar_num(),
            name = quest_ctx:name(),
        }
    end
    return ret
end

return this